package com.memory.modules.business.domain.earn;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @PackageName: com.memory.modules.business.domain.earnings
 * @ClassName: CurDayPrice
 * @Description:
 * @author: zhuguangxun
 * @date 2021/3/11
 */
@Data
@Entity
@Table(name = "cur_day_price")
public class CurDayPrice implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Long accountId;

    private BigDecimal usdtPrice;

    private BigDecimal count;

    private BigDecimal cruEarn;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
}
